package com.jxsd.edu.cn.struts2.exception;

public class ApplicationException extends Exception {
	
	
       /**
	 * 
	 */
	private static final long serialVersionUID = 3058126189583260886L;
	/** A wrapped Throwable */
       protected Throwable cause;
       
       public ApplicationException() {
           super("Error occurred in application.");
       }
       public ApplicationException(String message)  {
           super(message);
       }
       public ApplicationException(String message, Throwable cause)  {
           super(message);
           this.cause = cause;
       }
       // Created to match the JDK 1.4 Throwable method.
       public Throwable initCause(Throwable cause)  {
           this.cause = cause;
           return cause;
       }
  
       public Throwable getCause()  {
           return cause;
       }
}